$(function () {
    HOME.ajaxHOMEFn({
        url: HOME.baseUrl.order,
        type: 'GET',
        dataType: 'json',
        data: {
            page_size: 10,
            page: 1
        }
    }, function (res) {
        res.id = HOME.getQueryVariable('id')
        res.type = HOME.getQueryVariable('type')
        res.typeAssort = HOME.getQueryVariable('typeAssort')
        res.curId = HOME.getQueryVariable('curId')
        $('#order').html(template('orderTpl', {'res': res}));
        var windowHeight = $(window).height();
        var mainWrapHeight = $('.main-wrap').height();
        console.log(windowHeight  - 267  ,mainWrapHeight)
        if (mainWrapHeight  < windowHeight - 267) {
            $('.center').height(windowHeight - 160);
        }
    });
});

